﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EndSpawn : IEffect {
    public EffectType type;
    public float dueTime;
    

    public override void Disable()
    {
        if (!Application.isPlaying) return;
        Debug.Log("ok");
        IEffect.PlayWhere((int)type, transform.position, dueTime);
        gameObject.SetActive(false);
    }

  


}
